﻿// See https://aka.ms/new-console-template for more information
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shh
{
    class test
    {
        public int GetHour()
        {
            DateTime  dt = DateTime.Now;
            int hour = dt.Hour;
            return hour;
        }
    }
    class Program
    {
        public void MyMethod(ref int val)
        {
            val++;
        }
        static void Main()
        {
            int x = 0;
            Program program = new Program();
            program.MyMethod(ref x);
            Console.WriteLine(x);
            //test t=new test();
            //int hour = t.GetHour();
            //Console.WriteLine(hour);
        }
    }
}
